﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Entity.ProjectEnt;
using ZFine.Domain.Entity;

namespace Logic.Map.Project
{
    public class SalaryMap : EntityTypeConfiguration<SalaryEntity>
    {
        public SalaryMap()
        {
            this.ToTable("Salary");
            this.HasKey(t => t.F_Id);
            Property(p => p.F_CreatorUserId).HasMaxLength(50);
            Property(p => p.F_LastModifyUserId).HasMaxLength(50);
            Property(p => p.F_DeleteUserId).HasMaxLength(50);

            Property(p => p.Weight).HasPrecision(18,2);
            Property(p => p.NeedToPay).HasPrecision(18, 2);
            Property(p => p.Remark).HasMaxLength(300);
        }
    }
}
